from ProxiesPool.API import app
from ProxiesPool.Crwaler import Getting
from multiprocessing import Process


def api_run():
    app.run()


def getting_run():
    g = Getting()
    g.run()



def RunProxyPool():
    Process(target=api_run).start()
    Process(target=getting_run).start()
